import request from '@/utils/request'

// 查询AQI天列表
export function listAqiDay(query) {
  return request({
    url: '/aqi/aqiDay/list',
    method: 'get',
    params: query
  })
}

// 查询AQI天详细
export function getAqiDay(id) {
  return request({
    url: '/aqi/aqiDay/' + id,
    method: 'get'
  })
}

// 新增AQI天
export function addAqiDay(data) {
  return request({
    url: '/aqi/aqiDay',
    method: 'post',
    data: data
  })
}

// 修改AQI天
export function updateAqiDay(data) {
  return request({
    url: '/aqi/aqiDay',
    method: 'put',
    data: data
  })
}

// 删除AQI天
export function delAqiDay(id) {
  return request({
    url: '/aqi/aqiDay/' + id,
    method: 'delete'
  })
}
